package com.yb.proxy;

import com.yb.proxy.cglib.CglibProxy;
import com.yb.proxy.cglib.Person;

public class Application {
//    public static void main(String[] args) {
//    	System.out.println("******** jdk dynamic aop ******** ");
//    	Speakable jdkProxy = new DynamicProxy(new Person()).getProxy();
//    	jdkProxy.sayHi();
//    	jdkProxy.sayBye();
//    }

    public static void main(String[] args) {
        System.out.println("******** cglib dynamic aop ******** ");
        Person cglib = CglibProxy.getInstance().getProxy(com.yb.proxy.cglib.Person.class);
        cglib.sayHi();
        cglib.sayBye();
    }
}
